export const customMixin = {
  install(app) {
    // 全局混入
    app.mixin({

      onPullDownRefresh() {
        const pages = getCurrentPages();
        const currentpage = pages[pages.length - 1];
        // currentpage.onLoad();
        // currentpage.onShow();
        setTimeout(() => {
          uni.stopPullDownRefresh();
          uni.showToast({ title: "刷新成功",icon: "success"})
        }, 1000);
      },
    });
  },
};
